
<div>
<nav class="navbar navbar-default" role="navigation">
  <!-- Brand and toggle get grouped for better mobile display -->
  <div class="navbar-header">
    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
      <span class="sr-only">Toggle navigation</span>
      <span class="icon-bar"></span>
      <span class="icon-bar"></span>
      <span class="icon-bar"></span>
    </button>
    <a class="navbar-brand" href="#">筛选</a>
  </div>

  <!-- Collect the nav links, forms, and other content for toggling -->
  <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
    <ul class="nav navbar-nav sort-bar">
      <li <#if sortby=1>class="active"</#if> onclick="bindclickload($(this));" target-selector=".products-grid" url="${basePath}homepage/getproducts/${currentMenu.id}" params='{"sortby":1}'><a>最新上架</a></li>
      <li <#if sortby=2>class="active"</#if> onclick="bindclickload($(this));" target-selector=".products-grid" url="${basePath}homepage/getproducts/${currentMenu.id}" params='{"sortby":2}'><a>销量优先</a></li>
      <li <#if sortby=3>class="active"</#if> onclick="bindclickload($(this));" target-selector=".products-grid" url="${basePath}homepage/getproducts/${currentMenu.id}" params='{"sortby":3}'><a>会员好评</a></li>
      <li class="dropdown">
        <a href="#" class="dropdown-toggle" data-toggle="dropdown">${currentMenu.name} <b class="caret"></b></a>
        <ul class="dropdown-menu">
        		<li><a href="#">所有分类</a></li>
        		<li class="divider"></li>
        	<#list menus as menu>
        		 <li onclick="bindclickload($(this));" target-selector=".products-grid" url="${basePath}homepage/getproducts/${menu.id}" ><a>${menu.name}</a></li>
        	</#list>
        </ul>
      </li>
    </ul>

  </div><!-- /.navbar-collapse -->
</nav>

</div>

<div>



		  	<ul class="list-inline">
		  	
		  		<#list products as p>
				<li class="product-cell">
				    <div class="thumbnail">
				      <img src="${basePath}${p.thumnail}" alt="...">
				      <div class="caption">
				        <h4>${p.name}</h4>
				        <p><em>${p.description}</em></p>
				        <p><a href="#" class="btn btn-primary" role="button">Button</a> <a href="#" class="btn btn-default" role="button">Button</a></p>
				      </div>
				    </div>
				</li>
				</#list>
		  	
		 	</ul>
		 	
</div>